package com.li.druid.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("uuid_test")
public class UUIDTest {
    // 新增时主键使用UUID
    @TableId(type = IdType.UUID,value = "id")
    private String id;
    @TableField("name")
    private String name;
}
